<?php
/*
 * [佳喜网络!] (C)2008-2009 JiaXi Inc.
 * $Id: include.php 2008-8-13 19:28:02 pepsi.zh $
 * -------------------------------------------
 * 网址：www.he88.cn
 * -------------------------------------------
 * 这是一个共享软件，遵循我们公司的共享协议。
*/

include_once  dirname(__FILE__).'./../module/common/config.inc.php';
include_once SITE_ROOT.'plus/smarty/Smarty.class.php'; //包含smarty类文件

$t = new Smarty();  //建立smarty实例对象$smarty
$t->template_dir = SITE_ROOT.'/theme/default/';
$t->compile_dir  = SITE_ROOT.'/theme/templates_c/';
$t->compile_id = 'index_index';
//$t->cache_dir = WEB_ROOT.'admin/_cache/';
$t->caching      = false;
$t->left_delimiter 	= "{{";
$t->right_delimiter = "}}";

$outvar[img_url] = '/theme/default/images/';
$outvar[css_url] = '/theme/default/css/';
$outvar[js_url] = '/theme/default/js/';
$outvar[csslist][] = $outvar[css_url].'index.css';
$outvar[jslist][] = $outvar[js_url].'overlist.js';
$outvar[jslist][] = DEFAULT_JS_URL.'public.js';
$outvar[headtitle] = SITE_TITLE;
$outvar[headkeyword] = SITE_KEYWORD;
$outvar[headdescription] = SITE_DESCRIPTION;

function outFile($includefile='index',$mainT='main'){
	global $t,$outvar;
	$outvar[TempFile] = $includefile.'.html';
	assignMore($outvar);
	$t->display($mainT.'.html');
}
